package com.ermao.mymes.support.pipeline;

import com.ermao.mymes.common.vo.BasicResultVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author Ermao
 * Date: 2022/5/7 18:52
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class ProcessContext {
	/**
	 * 标识责任链的code
	 */
	private String code;

	/**
	 * 存储责任链上下文数据的模型
	 */
	private ProcessModel processModel;

	/**
	 * 责任链中断的标识
	 */
	private Boolean needBreak = false;

	/**
	 * 流程处理的结果
	 */
	BasicResultVO response = BasicResultVO.success();
}
